<template>
  <BasicDrawer v-bind="$attrs" title="采集器列表" width="50%">
    <TerminalListDrawer></TerminalListDrawer>
  </BasicDrawer>
</template>
<script lang="ts">
import { provide,defineComponent } from 'vue';
import { BasicDrawer } from '@/components/Drawer';
import TerminalListDrawer from './TerminalListDrawer.vue';
export default defineComponent({
  components: { BasicDrawer,TerminalListDrawer },
  setup(){
    const parentMethod = (terminalRecord) => {
      console.log('父组件方法被调用');
      console.log(JSON.stringify(terminalRecord))

      // 使用 provide 将方法提供给子组件

    };
    provide('parentMethod', parentMethod);
  }

});
</script>

